public class Student {
    private String name;
    private int age;
    private float score;
    private static String classname="一班";
    static{
        classname="二班";
    }
    Student(String name,int age,float score){
        this.name=name;
        this.age=age;
        this.score=score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }
    public void shorw(){
        System.out.println("姓名："+this.name+"年龄："+this.age+"成绩："+this.score+"班级:"+classname);
    }
    public static String getClassname(){
        return classname;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }
}
